
//- This Source Code Form is subject to the terms of the Mozilla Public
//- License, v. 2.0. If a copy of the MPL was not distributed with this
//- file, You can obtain one at http://mozilla.org/MPL/2.0/.
//-
//- Copyright (c) 2021-present Kaleidos Ventures SL

ul.tags-dropdown(ng-if="(colorArray | filter:tag.name:strict).length > 0")
    li(
        ng-repeat="tag in colorArray | filter:tag.name:strict",
        ng-click="onSelectTag({name: tag[0], color: tag[1]})"
    )
        .tags-dropdown-option
            span.tags-dropdown-name {{tag[0]}}
            span.tags-dropdown-color(
                ng-if="tag[1]"
                ng-style="{'background': tag[1]}"
                ng-title="tag[1]"
            )
